package com.lwj.dao;

import com.lwj.entity.Team;
import com.lwj.entity.UserTeam;
import com.lwj.model.TeamMemberRes;

import java.util.List;

public interface UserTeamMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(UserTeam record);

    int insertSelective(UserTeam record);

    UserTeam selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(UserTeam record);

    int updateByPrimaryKey(UserTeam record);

    /**
     * 根据实体部分信息获取实体
     * @param userTeam
     * @return
     */
    UserTeam getByUserTeam(UserTeam userTeam);

    /**
     * 获取团队中的用户信息
     * @param teamId
     * @return
     */
    List<TeamMemberRes> getTeamMemberInfo(int teamId);
}